package com.longxian.shardingjdbcdemo.util;

import lombok.Data;
import org.springframework.stereotype.Repository;

	/**
	 * 用于装响应的信息
	 */
@Data
@Repository
public class ResponseUser {
	private int code;
	private String msg;
	private Object data;

	/**
	 * 传参
	 */
	public ResponseUser setAll(int code,String msg,Object data){
		this.setCode(code);
		this.setMsg(msg);
		this.setData(data);
		return this;
	}
}